﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Iscrizioni.aspx.cs" Inherits="Autenticazione.Iscrizioni" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href=Stile.css rel=Stylesheet type="text/css"></link>
</head>
<body>
    <form id="form1" runat="server">
     <div id="dvTop" style="height: 200px; border: 1px" align="center">
            <table width="100%">
                <tr style="height: 50px">
                    <td>&nbsp;</td>
                </tr>
                <tr style="height: 100px">
                    <td align="center">
                        <table>
                            <tr>
                                <td class="lblTitleHRef"><a href="Autenticazione.aspx">Login</a></td>
                                <td class="lblTitleHRef"><a href="Club.aspx">Club</a></td>
                                <td class="lblTitleHRef"><a href="Coaches.aspx">Allenatori</a></td>
                                <td class="lblTitleHRef"><a href="Atleti.aspx">Atleti</a></td>
                                <td class="lblTitleNotHRef">Iscrizioni</td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="height: 50px">
                    <td>&nbsp;</td>
                </tr>
            </table>
        </div>
        <table id="tblFights" border="0px" width="100%">
            <tr>
                <td colspan="2" align="right">
                    <asp:Label ID="msgLoggedUser" runat="server" CssClass="lblLoggedUser" Text=""></asp:Label>&nbsp;|&nbsp;<a href="Logout.aspx">Logout</a>
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="msgHelpIscrizioni" runat="server" CssClass="lblInfo" Text="Per inserire gli incontri cliccare sul pulsante matita (<img src=image/edit.gif border=0>), inserire il tipo di gara che fà l’atleta dopodichè cliccare sul pulsante memorizza (<img src=image/save.png border=0>)."></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" class="lblInfo">
                    Per ogni atleta selezionare tutte le discipline a cui verrà iscritto.
                </td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="color: #66FF99; font-size: small;">
                    <span style="color: aquamarine"><b>Azzurro</b></span> = Contatto Leggero – <span style="color: rosybrown"><b>Rosso</b></span> = Contatto Pieno.
                </td>
            </tr>
            <tr>
                <td colspan="2">&nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <table width="100%" border="0px">
                    <tr>
                        <td align="center">Iscrizioni</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                    <td align="left">
                    <asp:DataGrid runat="server" ID="dtgFights" Width="100%" AutoGenerateColumns="false"
                    PageSize='<%# Autenticazione.Tools.Tools.GetMaxItemsForPage()%>' AllowPaging="true" AllowCustomPaging="true" DataKeyField="Id" AllowSorting="false"
                    OnEditCommand="dtgFights_Edit" OnCancelCommand="dtgFights_Cancel"
                        OnUpdateCommand="dtgFights_Update" 
                        onpageindexchanged="dtgFights_SelectedIndexChanged" GridLines="Horizontal">
                    <AlternatingItemStyle BackColor="#CCCCCC" />
                    <Columns>
                        <asp:EditCommandColumn ButtonType="LinkButton" UpdateText="&lt;img src=image/save.png border=0 title='Memorizza'&gt;" CancelText="&lt;img src=image/undo.png border=0 title='Abbandona'&gt;" EditText="&lt;img src=image/edit.gif border=0 title='Modifica dati'&gt;">
												<HeaderStyle Width="5%"></HeaderStyle>
											</asp:EditCommandColumn>
                        <asp:TemplateColumn HeaderText="Atleta" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate><label id="lblGDAtleta" runat="server"><%# DataBinder.Eval(Container.DataItem, "FullName") %></label></ItemTemplate>

<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Chauss Fight Assalto" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(1, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo1" Checked='<%# GetSelected(1, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Savate Assalto" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(2, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo2" Checked='<%# GetSelected(2, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Point Fight" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(3, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo3" Checked='<%# GetSelected(3, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Light Contact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(4, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo4" Checked='<%# GetSelected(4, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="KickLight" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(5, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo5" Checked='<%# GetSelected(5, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="K1 Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(6, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo6" Checked='<%# GetSelected(6, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Thai Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(7, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo7" Checked='<%# GetSelected(7, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="MMA Light" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(8, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo8" Checked='<%# GetSelected(8, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="Aquamarine" HeaderText="Grappling" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(9, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo9" Checked='<%# GetSelected(9, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Chauss Fight Combact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(10, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo10" Checked='<%# GetSelected(10, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Savate Combact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(11, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo11" Checked='<%# GetSelected(11, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Full Contact" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(12, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo12" Checked='<%# GetSelected(12, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Low Kick" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(13, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo13" Checked='<%# GetSelected(13, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="K1 Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(14, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo14" Checked='<%# GetSelected(14, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="Thai Full Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(15, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo15" Checked='<%# GetSelected(15, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                        <asp:TemplateColumn HeaderStyle-ForeColor="RosyBrown" HeaderText="MMA Full Rules" HeaderStyle-HorizontalAlign="center" HeaderStyle-VerticalAlign="middle">
                            <ItemTemplate>
                                <%#  GetIscrizione(16, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                <asp:CheckBox Height="18px" Width="10px" runat="server" id="edit_Campo16" Checked='<%# GetSelected(16, DataBinder.Eval(Container.DataItem, "Iscrizioni"))%>' />
							</EditItemTemplate>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle"></HeaderStyle>
                        </asp:TemplateColumn>
                    </Columns>
                    <EditItemStyle BackColor="Black" ForeColor="White" />
                    <FooterStyle BackColor="#666666" />
                    <HeaderStyle BackColor="#666666" Font-Bold="True" Font-Size="Small" />
                    <ItemStyle BackColor="White" ForeColor="Black" HorizontalAlign="Center" 
                            VerticalAlign="Middle" Font-Size="Small" />
                    <PagerStyle VerticalAlign="Middle" Visible="true" HorizontalAlign="Center" 
                            NextPageText="&gt;" PrevPageText="&lt;" Mode="NumericPages" PageButtonCount="5"
                            BackColor="#979797" ForeColor="Black" Wrap="False" Font-Size="Small">
                    </PagerStyle>
                    </asp:DataGrid>
                </td>
                </tr>
                </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
